﻿using System.Collections.Generic;

namespace Journal.Domain.Models
{
    public class EducationInstitution : BaseDomainModel
    {
        public virtual string Name { get; set; }

        public virtual string City { get; set; }

        public virtual string Region { get; set; }

        public virtual string Email { get; set; }

        public virtual string WebSite { get; set; }

        public virtual User Director { get; set; }

        public virtual string Phone { get; set; }

        public virtual string ShortName { get; set; }

        public virtual IEnumerable<StudyGroup> StudyGroups { get; set; } 

        public override int GetHashCode()
        {
            return string.Concat(Name, Id, City, Region, Email, WebSite, Director,Phone).GetHashCode();
        }
    }
}